﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Exentials.Xoox.Styles
{
    public class XCellStyle : XElementBase
    {
        private XAttributeBase<string> _name;
        private XAttributeBase<int> _xfId;
        private XAttributeBase<int> _builtinId;
        private XAttributeBase<int> _iLevel;
        private XAttributeBase<bool> _hidden;
        private XAttributeBase<bool> _customBuiltin;

        public XCellStyle(string name, int cellStyleId)
            : base("cellStyle")
        {
            _name = new XAttributeBase<string>(this, "name") { Value =  name };
            _xfId = new XAttributeBase<int>(this, "xfId") { Value = cellStyleId };
            _builtinId = new XAttributeBase<int>(this, "builtinId");
            _iLevel = new XAttributeBase<int>(this, "iLevel");
            _hidden = new XAttributeBase<bool>(this, "hidden");
            _customBuiltin = new XAttributeBase<bool>(this, "customBuiltin");
        }

        public string Name
        {
            get { return _name.Value; }
            set { _name.Value = value; }
        }

        public int CellStyleId
        {
            get { return _xfId.Value; }
            set { _xfId.Value = value; }
        }

        public int BuiltinId
        {
            get { return _builtinId.Value; }
            set { _builtinId.Value = value; }
        }

        public int ILevel
        {
            get { return _iLevel.Value; }
            set { _iLevel.Value = value; }
        }
    }
}
